﻿<ContentControl x:Class="Aeon.Presentation.EmulatorDisplay"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Aeon.Presentation"
    MinWidth="160" MinHeight="100" Background="Transparent" Focusable="True" FocusVisualStyle="{x:Null}">
    <ContentControl.Resources>
        <Pen x:Key="blackPen" Brush="Black" Thickness="1" />
        <DrawingImage x:Key="defaultArrow">
            <DrawingImage.Drawing>
                <GeometryDrawing Brush="White" Geometry="{x:Static Member=local:Geometries.Arrow}" Pen="{StaticResource blackPen}" />
            </DrawingImage.Drawing>
        </DrawingImage>
    </ContentControl.Resources>
    <Viewbox Name="outerViewbox">
        <Canvas Name="displayArea">
            <Image Name="displayImage" Stretch="None" MouseDown="displayImage_MouseDown" MouseUp="displayImage_MouseUp" MouseMove="displayImage_MouseMove" />
            <Rectangle Name="cursorRectangle" Width="8" Height="2" Fill="Gray" Visibility="Collapsed" />
            <Image Name="mouseImage" Source="{StaticResource defaultArrow}" Visibility="Collapsed" />
        </Canvas>
    </Viewbox>
</ContentControl>
